home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
vdtwn
/
tvf
/
asmhd6
/
tw1hd6
/
zoom2.hd6
< prev
next >
Wrap
Text File
|
1993-07-08
|
1KB
|
91 lines
ds_name db '\KOMEI\実物\tvf_prg\ZOOM2',0
paint_wd:
re_paint:
mouse_in:
ret
be_called:
push ebp
push ds
push es
mov ax,1ch
mov ds,ax
mov es,ax
;===== ZOOM UP mode2 =====
align 4
zoom_up2: mov ah,7 ;水平移動範囲指定
mov dx,0
mov bx,240
call MOUSE ;pword ptr fs:[MB]
mov ah,8 ;垂直移動範囲指定
mov dx,0
mov bx,160
call MOUSE ;pword ptr fs:[MB]
#zoom_up2: call MOUSE1 ; pword ptr fs:[MSR]
mov ah,03h ;位置読み取り
call MOUSE ;pword ptr fs:[MB]
movzx eax,dx
movzx esi,bx
imul esi,400h ;SourceVRAM座標算出
shl eax,1
add esi,eax
mov edi,40000h ;DestinationVRAM座標(^^;)
mov ebp,400h-6 ;work
mov edx,400h*2
mov ecx,80/2
;拡大率は、3倍
align 4
#drawing2: push ecx
mov cl,16
REPT 2
REPT 120
lodsw
mov ebx,eax ;この方が早い
shl eax,cl
mov ax,bx
stosd
stosw
add edi,ebp
stosd
stosw
add edi,ebp
stosd
stosw
sub edi,edx
ENDM
add esi,400h-120*2
add edi,400h*3-360*2
ENDM
pop ecx
dec ecx
jnz #drawing2
mov ax,0901h
int 90h
xor dh,0FFh
je #zoom_up2
pop es
pop ds
pop ebp
ret
look_me:
call sub_esi
dd 0,0
dw 0,0,80,42,20,30,15,1,0,0